﻿@model TechnicBlog.Models.ScoreEntity
@{
    Layout = null;
}

<script>
    function RequestError() {
        $.messager.alert('错误', '<br>请求失败！', 'error');
    }
    function checkSubmit() {
        if ($("#form0").validate()) {
            $('#loading').window('open');
            $("#form0").ajaxSubmit({ action: this.action, method: this.method });
        }
    }
</script>
<form id="form0" action="/Score/Edit" method="post" data-ajax-failure="RequestError"
data-ajax="true">
<fieldset>
    <legend>UserEntity</legend>
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.S_Id)
   @* @Html.HiddenFor(model => model.Student.S_Id)*@
    <table style="color: #666666; width: 100%;">

    <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                学生名称：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Student.S_Name)
                </div>
            </td>
        </tr>
        <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                联系手机：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Student.S_Mobile)
                </div>
            </td>
        </tr>
        <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                期次：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Term_Num, new { require = "true"})
                </div>
            </td>
        </tr>
        <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                语文：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Chinese_Score)
                </div>
            </td>
        </tr>
        <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                数学：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                     @Html.TextBoxFor(model => model.Math_Score)
                </div>
            </td>
        </tr>
        <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                英语：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                   @Html.TextBoxFor(model => model.English_Score)
                </div>
            </td>
        </tr>
        <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                物理：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                   @Html.TextBoxFor(model => model.Physics_Score)
                </div>
            </td>
        </tr>
        <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                化学：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                    @Html.TextBoxFor(model => model.Chemistry_Score)
                </div>
            </td>
        </tr>
        <tr style="height: 28px;">
            <td style="width: 20%;" align="right">
                生物：
            </td>
            <td style="width: 80%;" align="left">
                <div class="editor-field">
                    @Html.EditorFor(model => model.Biology_Score)
                </div>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <a class="easyui-linkbutton" iconcls="icon-save" onclick="return checkSubmit();">提交</a>
                <a class="easyui-linkbutton"
                    iconcls="icon-back" onclick="javascript:TreeLink('Score/Index/@Html.Raw(Model.S_Id.ToString())', '学生成绩管理');">返回</a>
            </td>
        </tr>
    </table>
</fieldset>
</form>
@*}*@
